]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Fake baseline alignment for notification timestamp
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Mar 2017 17:38:52 +0000 (18:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 14 Mar 2017 14:21:56 +0000 (15:21 +0100)
We don't have GTK's baseline alignment, so all we can do is add some
padding and hope it works out fine for most fonts and sizes ...

https://bugzilla.gnome.org/show_bug.cgi?id=779820

data/theme/gnome-shell-high-contrast.css
data/theme/gnome-shell-sass
data/theme/gnome-shell.css

index 60ae69105c5998e0b02c60976b8dcf2404c12aea..784d854925ef1037e792d3fc0d3b75589860266b 100644 (file)
@@ -901,7 +901,10 @@ StScrollBar {
 
 .message-secondary-bin > .event-time {
   color: #999999;
-  font-size: 0.7em; }
+  font-size: 0.7em;
+  /* HACK: the label should be baseline-aligned with a 1em label,
+           fake this with some bottom padding */
+  padding-bottom: 0.13em; }
 
 .message-secondary-bin > StIcon {
   icon-size: 16px; }
index 46697744a622a21955a6e16c7e161d2422bc0768..296e5451457032e2fd9919135828c213d118664e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 46697744a622a21955a6e16c7e161d2422bc0768
+Subproject commit 296e5451457032e2fd9919135828c213d118664e
index f3cc69c765619d0063f452826ab61d868edf2358..20423b603cb94349dca7250a384493d2ad97f91c 100644 (file)
@@ -901,7 +901,10 @@ StScrollBar {
 
 .message-secondary-bin > .event-time {
   color: #8e8e80;
-  font-size: 0.7em; }
+  font-size: 0.7em;
+  /* HACK: the label should be baseline-aligned with a 1em label,
+           fake this with some bottom padding */
+  padding-bottom: 0.13em; }
 
 .message-secondary-bin > StIcon {
   icon-size: 16px; }